package com.atguigu.gmall.product.service.impl;

import com.atguigu.gmall.product.mapper.BaseCategory1Mapper;
import com.atguigu.gmall.product.model.BaseCategory1;
import com.atguigu.gmall.product.service.BaseCategory1Service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: atguigu
 * @create: 2023-02-20 15:22
 */
@Service
public class BaseCategory1ServiceImpl extends ServiceImpl<BaseCategory1Mapper, BaseCategory1> implements BaseCategory1Service {



    /**
     * 查询一级分类列表
     * @return
     */
    @Override
    public List<BaseCategory1> getCategory1() {
        //QueryWrapper<BaseCategory1> queryWrapper = new QueryWrapper<>();
        //queryWrapper.eq("is_deleted", "0");
        LambdaQueryWrapper<BaseCategory1> queryWrapper = new LambdaQueryWrapper<>();
        //queryWrapper.eq(BaseCategory1::getIsDeleted, "0");
        return this.list(queryWrapper);
    }
}
